home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
001
/
xmodem.arc
/
OS.MAC
next >
Wrap
Text File
|
1985-06-15
|
1KB
|
76 lines
; Osborne 1 interface to XMODEM in C
;
.8080
CSEG
; ----------------------------------------
; Transmits Character in A to remote.
?tx::
di
out 0
sta 2A01H
out 1
ei
ret
; ---------------------------------------
; Receives Character from remote into A.
;
?rx::
di
out 0
lda 2A01H
out 1
ei
ret
; ---------------------------------------
; Returns non-zero in A if transmitter
; ready for another character.
;
?txstat::
di
out 0
lda 2A00H
out 1
ei
ani 00000010b
ret
; ---------------------------------------
; Returns non-zero in A if receiver has
; a character ready.
;
?rxstat::
di
out 0
lda 2A00H
out 1
ei
ani 00000001b
ret
; ---------------------------------------
; Returns zero in A if carrier is lost.
;
?abort::
di
out 0
lda 2A00H
out 1
ei
ani 00001000b
xri 00001000b
ret
; ---------------------------------------
; jumps to local console output routine
; (bypasses BYE intercepts. Very, very
; version dependent. You need to jump
; to where BIOS vector #5 (console out)
; jumps if BYE isn't loaded.
;
?lcon::
jmp 0CC3AH ;For TRANTOR CCP
end
jump
; to where BIOS vector #5 (console out)
; jumps if BYE isn't loaded.
;
?lcon::
jmp 0CC3AH ;For TRANTOR CCP
en